package cn.com.chengmandian.bike.service.impl;

import cn.com.chengmandian.bike.mapper.EbCouponInfoMapper;
import cn.com.chengmandian.bike.model.EbCouponInfo;
import cn.com.chengmandian.bike.service.IEbCouponInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 优惠券配置 服务实现类
 * </p>
 *
 * @author AutoGenerator
 * @since 2021-12-15
 */
@Service
public class EbCouponInfoServiceImpl extends ServiceImpl<EbCouponInfoMapper, EbCouponInfo> implements IEbCouponInfoService {

    @Autowired
    private EbCouponInfoMapper couponInfoMapper;

    @Override
    public List<EbCouponInfo> selectChannelList(Integer areaId, Integer sendChannel) {
        return couponInfoMapper.selectChannelList(areaId, sendChannel);
    }

    @Override
    public void updateSendAmount(Integer id) {
        couponInfoMapper.updateSendAmount(id);
    }
}
